import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "./assets/icon/iconfont.css";

import axios from "@/api/request";

import App from "./App.vue";
import router from "./route";
import mitt from "mitt";

const app = createApp(App);

app.use(ElementPlus);
app.use(router);
//app是自定义组件的Vue实例名，mybus是自定义总线属性名
app.config.globalProperties.$mybus = new mitt();
app.config.globalProperties.$http = axios;
app.mount("#app");
